home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / msjv6-5.zip / WINDOS.ZIP / CMDLINE.C < prev    next >
C/C++ Source or Header  |  1991-09-01  |  425b  |  17 lines

  1. /* CMDLINE.C */
  2.  
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5.  
  6. main(int argc, char *argv[], char *envp[])
  7. {
  8.     extern unsigned long far pascal GetSelectorLimit(unsigned);
  9.     extern char far *_lpcmdline;    // in ARGCARGV
  10.         
  11.     printf("lpcmdline @ %Fp\n", _lpcmdline);
  12.     printf("PSP @ %04x\n", _psp);   // in STDLIB.H
  13.     printf("PSP segment is %lu bytes\n", GetSelectorLimit(_psp) + 1);
  14.  
  15.     return 0;
  16. }
  17.